<div class="layui-header">
    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item" lay-unselect="">
            <a class="text-center" data-target-menu-type="">
                <i class="layui-icon layui-icon-spread-left">
                </i>
            </a>
        </li>
        <li class="layui-nav-item" lay-unselect="">
            <a class="layui-logo-hide layui-elip" href="/" title="ThinkAdmin">
				<span class="headimg headimg-no headimg-xs" data-lazy-src="/static/admin/theme/img/logo.png"
                      data-lazy-loaded="true" style="background-image: url('/static/admin/theme/img/logo.png')">
				</span>
            </a>
        </li>
        {foreach $menus["main"] as $key=>$v}
        <li class="layui-nav-item {$v.class}">
            <a  href="{:url($v.url)}">
				<span>
					{$v.name}
				</span>
            </a>
        </li>
       {/foreach}
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li lay-unselect class="layui-nav-item"><a data-reload><i class="layui-icon layui-icon-refresh-3"></i></a></li>
        <li class="layui-nav-item">
            <dl class="layui-nav-child">
                <dd lay-unselect><a data-modal="{:url('profile/info')}"><i class="layui-icon layui-icon-set-fill"></i>基本资料</a></dd>
                <dd lay-unselect><a data-modal="{:url('profile/passwd')}"><i class="layui-icon layui-icon-component"></i>密码设置</a></dd>
                {if is_administrator()}
                <dd lay-unselect><a data-load="{:url('config/clear')}"><i class="layui-icon layui-icon-fonts-clear"></i>清理缓存</a></dd>
                {/if}
                <dd lay-unselect><a data-load="{:url('login/out')}" data-confirm="确定要退出登录吗？"><i class="layui-icon layui-icon-release"></i>退出登录</a></dd>
            </dl>
            <a class="layui-elip">
                <span class="headimg" data-lazy-src="{:htmlentities(session('user.headimg'))}"></span>
                <span>{:session("user.username")}</span>
            </a>
        </li>
    </ul>
</div>